package cn.mafangui.hotel.exception;

import cn.mafangui.hotel.enums.ExceptionEnum;
import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author kalpa
 * @date 2022/3/17 11:10
 * @description  系统抛出异常
 */
@Data
public class HotelException extends Exception{
    /**
     * 异常枚举类
     */
    ExceptionEnum exceptionEnum;

    public HotelException(ExceptionEnum exceptionEnum) {
        this.exceptionEnum = exceptionEnum;
    }
}

